package collection;

import java.util.HashSet;
import java.util.Iterator;

public class Test02_Set {

	public static void  main(String[] args){
		HashSet<member> hs= new HashSet<member>();  //
		
		hs.add(new member("song","1234"));
		hs.add(new member("kim","5678"));
		hs.add(new member("lee","0000"));
		hs.add(new member("kim","5678"));
		 
		Iterator<member> it =hs.iterator();
		while(it.hasNext()){
			member mem=it.next();
			System.out.println(mem.getId()+","+mem.getPwd());
		}
	}
}
